DataSource for Entity Framework in WPF
C1.LiveLinq.Indexing Namespace / SubindexCollection<T> Class / Add Method / Add<TKey>(Expression<Func<T,TKey>>) Method
The type of the subindex key.
Key selector expression of the subindex, see KeySelector.

In This Topic
    Add<TKey>(Expression<Func<T,TKey>>) Method
    In This Topic
    Creates a new subindex and attaches it to its parent's IndexDefinition<T>.Subindexes collection.
    Syntax
    'Declaration
     
    Public Overloads Function Add(Of TKey)( _
       ByVal keySelector As Expression(Of Func(Of T,TKey)) _
    ) As Subindex(Of T,TKey)

    Parameters

    keySelector
    Key selector expression of the subindex, see KeySelector.

    Type Parameters

    TKey
    The type of the subindex key.

    Return Value

    The new subindex added to its parent's IndexDefinition<T>.Subindexes collection.
    See Also